package dfbz.demo03;

public class Test06 {
    public static void main(String[] args) {
        int sum3=0;
        int sum7=0;
        for (int i = 0; i <100 ; i++) {
            if(i%3==0){
                sum3+=i;
            }
            if(i%7==0){
                sum7+=i;
            }
        }
        int sum=sum3+sum7;
        System.out.println(sum);
        System.out.println(sum3);
        System.out.println(sum7);
    }
}
